#2 一个字典中，存放了10个学生的学号（key）和分数（value）；请筛选输出，大于80分的同学（按照格式：学号：分数）；
def filter_students():
    students = {
        'S001': 75,
        'S002': 85,
        'S003': 90,
        'S004': 60,
        'S005': 88,
        'S006': 92,
        'S007': 78,
        'S008': 81,
        'S009': 95,
        'S010': 70
    }

    high_scorers = {k: v for k, v in students.items() if v > 80}
    for student_id, score in high_scorers.items():
        print(f"{student_id}: {score}")

filter_students()
